<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../../common/tagInclude.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
	<base href="${basePath}" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<LINK href="${basePath}styleAdmin/css/portalinabox.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="${basePath}styleAdmin/js/prototype-1.6.0.3.js"></script>
<script type="text/javascript" src="${basePath}styleAdmin/js/common.js"></script>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<title>分站更新</title>
<script type="text/javascript">
	function checkForm(){
		var errors = "" ;
		if(stringTrim($F('name')) == "" ){
			errors += "名称不能为空<br/>" ;
		}
		if(stringTrim(stringTrim($F('sign'))) == "" ){
			errors += "密钥不能为空<br/>" ;
		}
		if(errors.length > 0){
			$('errors').innerHTML = "<font color='red' size='12'>" + errors  + "</font>" ;
			return ;
		} 
		document.myform.submit();
	}
</script>
</head>
<body bottomMargin="0" leftMargin="0" rightMargin="0" topmargin="0">
<form name="myform" method="post" action="${basePath}admin/websiteInfo/${act}.do">
<%@include file="../common/navigate.jsp" %>
<input type="hidden" id="id" name="id" value="${website.id}"/>
<table width="90%" border="0" align="center" cellPadding="0" cellSpacing="0" style="margin-top:5px;">
 <tr><td align="center" colspan="2"><div id="errors"></div></td></tr>
 <tr>
	<td vAlign="top" align="center" height="157">
		<table width="10" border="1" class="mainFunctionTable"  cellpadding="0" cellspacing="1">
        	<tr height="25" class="pLabel">
            	<td colspan="2" class="td_nwarpstyle" align="left">&nbsp;&nbsp;<c:choose><c:when test="${act == 'update'}">更新</c:when><c:otherwise>新建</c:otherwise></c:choose>用户</td>
            </tr>
            <tr>
         		<td align="center" width="10%">名称</td>
         		<td align="left"><input type="text" name="name" id="name" value="${website.name}" size="80"/>&nbsp;&nbsp;<font color='red'>*</font></td>
    		 </tr>
			<tr>
         		<td align="center" width="10%">标明自身:</td>
         		<td align="left">
         			<select name="isSelf" id="isSelf" class="required" disabled="disabled">
						<option value="1" <c:if test="${website.isSelf == '1'}">selected</c:if>>是</option>
						<option value="0" <c:if test="${website.isSelf == '0'}">selected</c:if>>否</option>
					</select>&nbsp;&nbsp;<span class="pn-frequired">(传输数据中标识自身)</span>
         			&nbsp;&nbsp;<font color='red'>*</font>
         		</td>
    		 </tr>
			<tr>
         		<td align="center" width="10%">描述:</td>
         		<td align="left"><textarea cols="50" rows="5" name="desc" id="desc">${website.desc}</textarea></td>
    		 </tr>
			<tr>
         		<td align="center" width="10%">URL前缀:</td>
         		<td align="left"><input type="text" maxlength="100" name="url" id="url" size="35" value="${website.url}" disabled="disabled">&nbsp;&nbsp;<font color='red'>*
					(格式 http://www.domain.com/test.jsp)</font>
				</td>
    		 </tr>
			<tr>
         		<td align="center" width="10%">密钥:</td>
         		<td align="left"><input type="text" maxlength="100" name="sign" id="sign" size="35" value="${website.sign}">&nbsp;&nbsp;<font color='red'>(对传输的数据进行加密的密钥)</font></td>
    		 </tr>
            <tr align="left">
              <td align="center" colspan="2">
	              <a href="javascript:checkForm();"><img src="${basePath}styleAdmin/images/button/save.gif" border=0></a>
	              &nbsp;&nbsp;
			      <a href="${basePath}admin/websiteInfo/list.do"><img src="${basePath}styleAdmin/images/button/exit.gif" border=0></a>
              </td>
            </tr>
          </table>
      </td>
  </tr>
</table>
</form>
</body>
</html>